<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:d="http://java.sun.com/jsf/composite/dip"
	xmlns:func="http://dip.com.br/functions">
<h:head>
	<title></title>
</h:head>
<h:body>
	<ui:composition template="../tpt/tpt.xhtml">
	<ui:define name="head">
		Cadastro UF
	</ui:define>
		<ui:define name="conteudo">
			<f:view>

				<h:form name="formCadUF" id="formCadUF" prependId="false">
					<h:panelGroup id="cadCorpo" layout="block">
					<p:messages id="message" showDetail="true" autoUpdate="true" />
					<table>
						<tr>
							<td>Nome:</td>
							<td>
								<p:inputText value="#{cadastroUF.uf.descricao}"/>
							</td>
						</tr>
						<tr>
							<td>Sigla:</td>
							<td>
								<p:inputText value="#{cadastroUF.uf.sigla}"/>
							</td>
						</tr>
					</table>

					</h:panelGroup>
					<h:panelGroup id="barButon" layout="block">
						<p:commandButton value="Salvar" update=":formCadUF:cadCorpo" action="#{cadastroUF.acaoInserir}"/>
					</h:panelGroup>
				</h:form>

			</f:view>
		</ui:define>
	</ui:composition>
</h:body>
</html>


